package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author shixc
 * @since 2019-02-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("MMRU_T")
public class MmruT extends PO<MmruT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "MMRUENT", type = IdType.INPUT)
    private String MMRUENT;

    private String MMRUDOCNO;

    private BigDecimal MMRUSEQ;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRUDOCDATE;

    private String MMRU001;

    private BigDecimal MMRU002;
    private String MMRU003;

    private String MMRU004;
    private BigDecimal MMRU005;
    private String MMRU006;
    private String MMRU007;
    private String MMRU008;
    private String MMRU009;

    private String MMRU010;
    private String MMRU011;
    private String MMRU012;
    private String MMRU013;
    private String MMRU014;
    private String MMRU015;
    private String MMRU016;
    private String MMRU017;
    
    private String MMRU100;
    private String MMRU101;
    private String MMRU102;
    private String MMRU103;
    private String MMRU104;

    private String MMRUACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRUUSER;

    @TableField(fill = FieldFill.INSERT)
    private String MMRUGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String MMRUMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRUTIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRUDATE;

    @TableField(fill = FieldFill.INSERT)
    private String MMRUORIG;

    @TableField(fill = FieldFill.INSERT)
    private String MMRUORIU;


    @Override
    protected Serializable pkVal() {
        return this.MMRUENT;
    }

}
